Title Banner


Technical Q&A's


QD3D 03 - -28482 Errors When Selecting Markers (1-June-95)


Q I am trying to select markers, but my code is crashing inside Q3WindowRectPick_New with this error: -28482, kQ3ErrorInvalidObject. Since my frame is in local screen coordinates and looks correct, why am I getting an invalid object from Q3WindowRectPick_New (unless the data is incorrect). It doesn't seem likely that the data is incorrect, since it's so simple.

A Your code isn't really crashing. The debug version of the library is letting you know that you are doing something it can't deal with. The problem is that you cannot sort on a window pick rect, so the line:

myWPPickData.data.sort = kQ3PickSortNearToFar;

should read:

myWPPickData.data.sort = kQ3PickSortNone;


Technical Support
Technical Q&As
Previous Question | Contents | Next Question

Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help